{
  "properties" : { },
  "id" : "3d7b3223234d414fa08c2c1d8d698780",
  "script" : null,
  "groupId" : "ee26ca5b190e44bfaa7bc7a3ad950442",
  "name" : "查看数据库ddl",
  "createTime" : null,
  "updateTime" : 1706757404090,
  "lock" : null,
  "createBy" : null,
  "updateBy" : null,
  "path" : "all_db",
  "method" : "GET",
  "parameters" : [ ],
  "options" : [ ],
  "requestBody" : "",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : "{\n    \"code\": 1,\n    \"message\": \"success\",\n    \"data\": \"suc\",\n    \"timestamp\": 1706757391154,\n    \"executeTime\": 15\n}",
  "description" : null,
  "requestBodyDefinition" : null,
  "responseBodyDefinition" : null
}
================================
import db;
import log;

var columns = """
    SELECT  * FROM  INFORMATION_SCHEMA.COLUMNS WHERE  TABLE_SCHEMA = 'S1'
"""

var tables = db.select("""
     select `sql` from INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE ='STANDARD_TABLE'
""") 
log.info('单个表的字段 {} '+ columns);
log.info('库的DDL {} '+ tables);
return "suc" ;